FROM anapsix/alpine-java:8_server-jre_unlimited

MAINTAINER team@canaan

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

RUN mkdir -p /app

WORKDIR /app

EXPOSE 8080

ADD ./target/canaan-admin.jar ./app.jar

CMD java -Xms256m -Xmx256m -Xss1024k -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:+DisableExplicitGC -jar app.jar
